import 'package:json_annotation/json_annotation.dart';

part 'shapefile_bean.g.dart';

@JsonSerializable()
class ShapeFileBean{
  bool success;
  List<ShapefileData> data;

  ShapeFileBean(this.success, this.data);

  factory ShapeFileBean.fromJson(Map<String, dynamic> json) => _$ShapeFileBeanFromJson(json);
  Map<String, dynamic> toJson() => _$ShapeFileBeanToJson(this);
}

@JsonSerializable()
class ShapefileData{
  String id;
  String industryName;
  String entryName;
  String fileName;
  String shapeFile;


  ShapefileData(this.id, this.industryName, this.entryName, this.fileName,
      this.shapeFile);

  factory ShapefileData.fromJson(Map<String, dynamic> json) => _$ShapefileDataFromJson(json);
  Map<String, dynamic> toJson() => _$ShapefileDataToJson(this);
}